package untils

import (
	"driver_srv/basic/config"
	"fmt"
)

// 同步活动库存
func AddStock(driverId, license_plate int) error {
	key := fmt.Sprintf("seckillId:%d", license_plate)
	for i := 0; i < license_plate; i++ {
		config.Rdb.LPush(config.Ctx, key, i+1)
	}
	return nil
}
